﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace stringValidation
{
    class Number
    {
        public static bool isNumeric(string val, System.Globalization.NumberStyles NumberStyle)
        {
            long result;
            return long.TryParse(val, NumberStyle,
                System.Globalization.CultureInfo.CurrentCulture, out result);
        }
    }
}
